Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable CPU accelerate FIL in MULTI #7380

Merged

Conversation

tiger100256-hu
Copy link
Contributor

Details:

  • Enable CPU accelerate FIL in MULTI
  • PR 7076 can't trigger jenkins ci,create this new PR

Tickets:

  • 62140

@tiger100256-hu tiger100256-hu requested review from a team September 6, 2021 06:16
@openvino-pushbot openvino-pushbot added category: inference OpenVINO Runtime library - Inference category: MULTI OpenVINO MULTI device plugin category: IE Tests OpenVINO Test: plugins and common labels Sep 6, 2021
@tiger100256-hu tiger100256-hu force-pushed the huyuan/multi_cpu_accelerator branch from c5c6efa to a83fcdb Compare September 6, 2021 06:21
ScheduleToWorkerInferRequest(std::move(t), device);
}
});
_networkFirstReady = _cpuFuture.get();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are waiting for the CPU here, but the accel may be loaded first (from the cache), let's keep this in mind (but maybe not complicate this PR anymore with that regard)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Follow up PR is needed for LoadNetwork cancelling and accel completion first.

@tiger100256-hu tiger100256-hu force-pushed the huyuan/multi_cpu_accelerator branch 2 times, most recently from 8901240 to 06565f1 Compare September 15, 2021 07:38
@tiger100256-hu tiger100256-hu force-pushed the huyuan/multi_cpu_accelerator branch from a77cbae to a6a52b3 Compare September 16, 2021 01:38
KEY_PERFORMANCE_HINT_NUM_REQUESTS

Signed-off-by: Hu, Yuan2 <[email protected]>
// and reset the strDevices to support devices
std::vector<std::string> validConfigKey;
validConfigKey.push_back(PluginConfigParams::KEY_PERF_COUNT);
validConfigKey.push_back(PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comment: I assume this ASYNC_REQUESTS config key is only needed becuase OV has legacy impl and tests for that. but not sure of new devices like VPUX will support that, as the mode that is triggered by this key is obslolete.

So let's check that this checking this (evetually useless) config capability doesn't prevent us form using new devices like CUDA and KMB, and if this is the case- will need to remove maybe in the next PR

}
// replace the configure with configure that auto want to pass to device
// and reset the strDevices to support devices
std::vector<std::string> validConfigKey;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor but better to do std::vectorstd::string validConfigKey = PerfHintsConfig::SupportedKeys(); rather than explicitly add the specific values in the lines 241-242 below ( since if the new config is added to the hints impl, you will need to explicitly add that)

Copy link
Contributor

@myshevts myshevts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but notice couple of minor comments ( to be adressed in later PRs)

@myshevts myshevts enabled auto-merge (squash) September 16, 2021 08:42
@myshevts myshevts disabled auto-merge September 16, 2021 09:49
@myshevts myshevts merged commit ac8db25 into openvinotoolkit:master Sep 17, 2021
akuporos pushed a commit to akuporos/openvino that referenced this pull request Sep 29, 2021
* Enable CPU accelerate FIL in MULTI

Signed-off-by: Hu, Yuan2 <[email protected]>

* add configure to device

KEY_PERFORMANCE_HINT_NUM_REQUESTS

Signed-off-by: Hu, Yuan2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: IE Tests OpenVINO Test: plugins and common category: inference OpenVINO Runtime library - Inference category: MULTI OpenVINO MULTI device plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants